package io.renren.modules.app.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import io.renren.modules.app.entity.BalanceLogEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.renren.modules.app.req.BalanceLogReq;
import io.renren.modules.app.vo.BalanceLogVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 账户余额日志
 * 
 * @author
 * @email
 * @date 2021-01-12 16:56:22
 */
@Mapper
public interface BalanceLogDao extends BaseMapper<BalanceLogEntity> {
    List<BalanceLogEntity> selectBalanceLogPage(IPage page, @Param("balanceLogEntity") BalanceLogEntity balanceLogEntity);

    /**
     *用户个人余额
     * @param page
     * @param balanceLogReq
     * @return
     */
    List<BalanceLogVO> getBalanceLog(IPage page, @Param("balanceLogReq") BalanceLogReq balanceLogReq);
}
